import React, { memo } from 'react';
import { Form, Input } from 'antd';

const { TextArea } = Input;

const evaluationFormLayout = {
    wrapperCol: { span: 18 },
    labelCol: { span: 6 }
};

const TalkConclusionForm = ({ form, onSubmit, loading, ...rest }) => {
    const { getFieldDecorator } = form;
    return <Form {...evaluationFormLayout} {...rest}>
        <Form.Item label="结论" colon={false} required={false}>
            {getFieldDecorator('summary', {
                initialValue: '',
                rules: [{ required: true, min: 2, max: 200, message: '请输入结论，2-200 字符' }]
            })(
                <TextArea
                    placeholder="请输入理由，2-200 字符"
                    style={{ width: 340 }}
                    autoSize={{ minRows: 3, maxRows: 3 }}
                />
            )}
        </Form.Item>
    </Form>
};
export default memo(TalkConclusionForm)
